<?
	global $db, $htmlMenu, $idActive, $do, $prefix_url;
	$idActive = 0;
	
	if($do=="main")
		$idActive = 151;
	else
		$idActive = isset($_GET['idActive'])?$_GET['idActive']:0;
	$sql = "select * from categories where alias like '%menu main%'";
	$r = $db->getRow($sql);
	$idMn = $r['id'];
	
	
	global $Menu2,$Menu2Link,$SubMenu2,$SubMenu2Link, $lg;
	$SubMenu2 = array();
	$Menu2Link = array();
	$SubMenu2Link = array();
	
	global $db, $lg, $Menu2, $prefix_url, $FullUrl;
	$sql = "select * from categories where pid=121 and id = 699 order by num asc, id asc";
	//echo $sql;
	$Menu2 = $db->getRow($sql);
	$n = count($Menu2);
	
	if($Menu2){
			if($Menu2['has_child'] == '1'){
				$sql = "select * from categories where showed=1 and pid=" . $Menu2['id'] . " order by num asc,id asc";
				//echo $sql;
				$SubMenu2 = $db->getAll($sql);
				$SubMenu2Link = array();
				$n = count($SubMenu2);
				for($j=0; $j<$n; $j++){
					$SubMenu2Link[$j] = $FullUrl . $prefix_url . $Menu2["unique_key_$lg"] . "/" . $SubMenu2[$j]["unique_key_$lg"] . "/";
				}
			}
		
	}
	include(UC_DIR.'CategoriesLeft.ctp');
?>